package com.ququ.syb.balance.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.AccountBalanceFlow;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "flow")
public interface AccountBalanceFlowFegin {

    @RequestMapping(value = "/list")
    Result<List<AccountBalanceFlow>> listAccountBalanceFlow(@RequestParam(value = "accountid") String accountid,
                                                            @RequestParam(value = "tradenum") String tradenum,
                                                            @RequestParam(value = "amount") Long amount,
                                                            @RequestParam(value = "flowtype") Integer flowtype,
                                                            @RequestParam(value = "remark") String remark);

    @RequestMapping(value = "/save")
    Result<AccountBalanceFlow> saveAccountBalanceFlow(@RequestParam(value = "accountid") String accountid,
                                                      @RequestParam(value = "tradenum") String tradenum,
                                                      @RequestParam(value = "currentbalance") Long currentbalance,
                                                      @RequestParam(value = "amount") Long amount,
                                                      @RequestParam(value = "afterbalance") Long afterbalance,
                                                      @RequestParam(value = "flowtype") Integer flowtype,
                                                      @RequestParam(value = "remark") String remark,
                                                      @RequestParam(value = "appcode") String appcode,
                                                      @RequestParam(value = "paychannelid") String paychannelid,
                                                      @RequestParam(value = "ordertype") Integer ordertype);
}
